package com.njiandan.tackpicture.ui;


import com.njiandan.tackpicture.R;
import com.njiandan.tackpicture.fragment.FunctionFragment;

public enum MainTab {

	FUNCTION(0, R.string.main_tab_name_function, R.drawable.tab_icon_new,
			FunctionFragment.class),

	PHOTO(1, R.string.main_tab_name_photo, R.drawable.tab_icon_tweet,
			FunctionFragment.class),

	QUICK(2, R.string.main_tab_name_quick, R.drawable.tab_icon_new,
			FunctionFragment.class),

	HELP(3, R.string.main_tab_name_help, R.drawable.tab_icon_explore,
			FunctionFragment.class),

	ABOUT(4, R.string.main_tab_name_about, R.drawable.tab_icon_me,
			FunctionFragment.class);

	private int idx;
	private int resName;
	private int resIcon;
	private Class<?> clz;

	private MainTab(int idx, int resName, int resIcon, Class<?> clz) {
		this.idx = idx;
		this.resName = resName;
		this.resIcon = resIcon;
		this.clz = clz;
	}

	public int getIdx() {
		return idx;
	}

	public void setIdx(int idx) {
		this.idx = idx;
	}

	public int getResName() {
		return resName;
	}

	public void setResName(int resName) {
		this.resName = resName;
	}

	public int getResIcon() {
		return resIcon;
	}

	public void setResIcon(int resIcon) {
		this.resIcon = resIcon;
	}

	public Class<?> getClz() {
		return clz;
	}

	public void setClz(Class<?> clz) {
		this.clz = clz;
	}
}
